<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>系统管理员 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-col-md12">
<div style="height: 280px;padding-top: 50px;" class="layui-card">
<form class="layui-form" action="#">
<div class="layui-form-item">
<label class="layui-form-label">模块文件</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="filename" value="" placeholder="文件名称" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">如 head.php links.php</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label>
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="setup">新增并使用模块</button>
</div>
</div>
</form>
</div>
</div>
<?php adminechohtnl(); ?>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).use(['form', 'layer', 'element', 'upload'], function() {var admin=layui.admin,$=layui.$,form=layui.form,element=layui.element,upload=layui.upload,router=layui.router();element.render();var layid=router.hash.replace(/^#layid=/, '');layid && element.tabChange('component-tabs-hash', layid);element.on('tab(component-tabs-hash)', function(elem) {location.hash='/' + layui.router().path.join('/') + '#layid=' + $(this).attr('lay-id');});form.on('submit(setup)', function(data) {data=data.field;var filename=data.filename;$.ajax({type: "post",url: 'index.php?m=manage&c=Div&a=add_Public_ajax&id=<?php echo set_get('id'); ?>&dir=<?php echo set_get('dir'); ?>&file=<?php echo set_get('file'); ?>',data: "filename=" + filename,dataType: "json",success: function(ret) {layer.msg(ret.msg);if (ret.code==1) {var index=parent.layer.getFrameIndex(window.name);parent.layer.close(index);parent.hdsyssetmode(filename);}}});return false;});});</script>
</body>
</html>